package com.example.xpvideo.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.xpvideo.entity.Comment;
import com.example.xpvideo.entity.res.GoodsCommentsRes;
import com.example.xpvideo.entity.res.SecondComments;
import com.example.xpvideo.mapper.base.CommentBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author : 洪俊新
 * @date : 2021/10/18 11:32
 * @description:
 */
@Component
@Mapper
public interface CommentMapper extends CommentBaseMapper {
    List<GoodsCommentsRes> commentListByTarId(@Param(Constants.WRAPPER) Wrapper<Comment> ew);


    List<SecondComments> secondCommentList(@Param(Constants.WRAPPER) Wrapper<Comment> ew);

}
